package pCloud.message;

import java.util.ArrayList;

/**
 * This represents the message from the DirectClient sent to the DataServer. The
 * message include parameters neccessary to execute the sliding window requests.
 * 
 */
public class DatabaseSlidingWindowRequest extends DatabaseMessage {
	public ArrayList<String> columns;
	public String tableId, startDate, endDate, aggregationFunction;
	public int windowSize, advanceStep;

	public DatabaseSlidingWindowRequest(ArrayList<String> cols, String tableId,
			String start, String end, String function, int wSize, int step) {
		this.columns = cols;
		this.tableId = tableId;
		this.startDate = start;
		this.endDate = end;
		this.aggregationFunction = function;
		this.windowSize = wSize;
		this.advanceStep = step;
	}
}
